You can now specify the size of the image buffer used by your image compressor or decompressor component. When your component calls the CDPreDecompress or CDPreCompress function, you can specify the size of the buffer as follows:
This is illustrated in Listing 1.
Listing 1 Specifying the size of an image buffer for a codec
p->capabilities->flags |= codecWantsSpecialScaling;
p->requestedBufferWidth = 720;
p->requestedBufferHeight = 480;